/*
package com.itheima.config;

import com.itheima.interceptor.DemoInterceptor;
import com.itheima.interceptor.TokenInterception;
import com.itheima.interceptor.TokenInterception2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

    */
/*@Autowired
    private TokenInterception tokenInterception;*//*

    @Autowired
    private TokenInterception2 tokenInterception2;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //注册自定义拦截对象
        registry.addInterceptor(tokenInterception2).addPathPatterns("/**").excludePathPatterns("/login");
    }
}
*/
